package com.liruo.test.spring.annotationdep.bean.factorymethod;

import org.springframework.beans.factory.FactoryBean;

/**
 * @Author:liruo
 * @Date:2022-11-20-22:17:44
 * @Desc
 */
public class WantBeanFactoryBean implements FactoryBean<WantBean> {
    @Override
    public WantBean getObject() throws Exception {
        return new WantBean();
    }

    @Override
    public Class<?> getObjectType() {
        return WantBean.class;
    }

    @Override
    public boolean isSingleton() {
        //默认 true
        return true;
    }
}
